<style>
    .plupload-preview li,
    .faupload-preview li {
        margin-top: 0px;
        margin-bottom: 15px;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('CompanyName')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" placeholder="请输入企业名称（限中文）" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="typeList" item="vo"}
                <label for="row[type]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}"
                        {in name="key" value="$row.type" }checked{/in} /> {$vo}</label> {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('WithdrawFee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="row dingdian-box">
                <div class="col-xs-6">
                    <div class="input-group input-groupp-md">
                        <div href="javascript:" class="btn-search-icon input-group-addon">{:__('HandFee')}</div>
                        <input id="c-handrate" class="form-control" data-rule="required" step="0.1" name="row[handrate]" type="number" value="{$row.handrate|htmlentities}">
                        <div href="javascript:" class="btn-search-icon input-group-addon">%</div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="input-group input-groupp-md">
                        <div href="javascript:" class="btn-search-icon input-group-addon">{:__('TaxeFee')}</div>
                        <input id="c-taxerate" class="form-control" data-rule="required" step="0.1" name="row[taxerate]" type="number" value="{$row.taxerate|htmlentities}">
                        <div href="javascript:" class="btn-search-icon input-group-addon">%</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group hidden">
        <label for="admin_limit" class="control-label col-xs-12 col-sm-2">{:__('AdminIimit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" min="1" max="100" placeholder="限制管理员数量" class="form-control" id="admin_limit" name="row[admin_limit]" value="{$row.admin_limit|htmlentities}" data-rule="required" />
        </div>
    </div> 
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Logo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-logo" class="form-control" data-rule="" size="50" name="row[logo]" type="text"
                    value="{$row.logo|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-logo" class="btn btn-danger faupload"
                            data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                            data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i>
                        </button></span>
                    <span><button type="button" id="fachoose-logo" class="btn btn-primary fachoose"
                            data-input-id="c-logo" data-mimetype="image/*" data-multiple="false"> <i
                                class="fa fa-list"></i> </button></span>
                </div>
                <span class="msg-box n-right" for="c-logo"></span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address_area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="row dingdian-box">
                <div class="col-xs-12">
                    <div class="input-group input-groupp-md" style="margin-bottom:10px;">
                        <input type="text" name="row[address]" id="c-address" value="{$row.address|htmlentities}" placeholder="可手动输入地址" class="form-control" />
                        <a href="javascript:" class="btn-search-icon input-group-addon" data-toggle='addresspicker' data-input-id="c-address" data-lng-id="c-address_longitude" data-lat-id="c-address_latitude" data-addon="{:get_addon_info('address')?1:0}">选择定位</a>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="input-group input-groupp-md">
                        <div href="javascript:" class="btn-search-icon input-group-addon">经度</div>
                        <input type="number" name="row[longitude]" id="c-address_longitude" value="{$row.longitude|htmlentities}" placeholder="经度值" class="form-control" />
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="input-group input-groupp-md">
                        <div href="javascript:" class="btn-search-icon input-group-addon">纬度</div>
                        <input type="number" name="row[latitude]" id="c-address_latitude" value="{$row.latitude|htmlentities}" placeholder="纬度值" class="form-control" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" autocomplete="off" id="username" name="founder[username]" value="{$row.founder.username|htmlentities}" data-rule="required;username" />
        </div>
    </div>
    <div class="form-group">
        <label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="founder[nickname]" autocomplete="off" value="{$row.founder.nickname|htmlentities}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="password" class="form-control" autocomplete="off" autocomplete="new-password" id="password" name="founder[password]" autocomplete="new-password" placeholder="不改请留空" value="" data-rule="password" />
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio"
                        value="{$key}" {in name="key" value="$row.status" }checked{/in} /> {$vo}</label> {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>